<?php
/* @var $this SlaytController */
/* @var $model Slayt */

$this->breadcrumbs=array(
	'Slayts'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List Slayt', 'url'=>array('index')),
	array('label'=>'Manage Slayt', 'url'=>array('admin')),
);
?>

<h1>Create Slayt</h1>

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/ckeditor/ckeditor.js">
</script>
<h1>Update Slayt <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>

<script type="text/javascript">
    CKEDITOR.replace( 'icerik', {
         filebrowserBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=files',
         filebrowserImageBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=images',
         filebrowserFlashBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=flash',
         filebrowserUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=files',
         filebrowserImageUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=images',
         filebrowserFlashUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=flash'
    });
    CKEDITOR.replace( 'resim', {
         filebrowserBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=files',
         filebrowserImageBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=images',
         filebrowserFlashBrowseUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/browse.php?type=flash',
         filebrowserUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=files',
         filebrowserImageUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=images',
         filebrowserFlashUploadUrl: '<?php echo Yii::app()->baseUrl; ?>/js/kcfinder/upload.php?type=flash',
         enterMode : CKEDITOR.ENTER_BR,
         toolbar : [{ name: 'insert', items : [ 'Image','Flash']} ],
    });
    
</script>